package org.vs.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.vs.annotation.ImageField;
import org.vs.domain.model.SysUser;
import org.vs.domain.model.TOption;
import org.vs.domain.model.TUserVote;
import org.vs.domain.model.TVote;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class VoteInfoDTO {
    private Long voteId;
    private Long userId;
    private String title;
    @ImageField
    private String image;
    private String description;
    private String startTime;
    private String endTime;
    private List<OptionDTO> options;
    private List<UserVoteDTO> users;
}
